<%--

    Licensed to Jasig under one or more contributor license
    agreements. See the NOTICE file distributed with this work
    for additional information regarding copyright ownership.
    Jasig licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file
    except in compliance with the License.  You may obtain a
    copy of the License at the following location:

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

--%>
<jsp:directive.include file="includes/top.jsp"/>
<%@ page pageEncoding="UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8" %>

<body style="background:#fff;">
    <div class="login">
        <!--header-->
        <div class="header box1">
            <a href="#"><img height="44" width="164" src="./img/login/logo_login.jpg" alt="冠群驰骋"/></a>
        </div>
        <!--header-->
        <!--body-->
        <div class="body">
            <div class="box2">
                <div class="box1 pr clearfix">
                    <form:form method="post" id="fm1" commandName="${commandName}" htmlEscape="true">
                        <div class="login_box bg">
                            <h1>登录</h1>
                            <h2><form:errors path="*" id="msg" cssClass="errors" element="div" htmlEscape="false"/></h2>
                            <h2>${error}</h2>
                            <ul class="user_login mb15">
                                <li>
                                    <c:choose>
                                        <c:when test="${not empty sessionScope.openIdLocalId}">
                                            <strong>${sessionScope.openIdLocalId}</strong>
                                            <input type="hidden" id="username" class="input_login" name="username" value="${sessionScope.openIdLocalId}"/>
                                        </c:when>
                                        <c:otherwise>
                                            <spring:message code="screen.welcome.label.netid.accesskey" var="userNameAccessKey"/>
                                            <form:input cssClass="required input_login" cssErrorClass="error" id="username" size="25" tabindex="1"
                                                        accesskey="${userNameAccessKey}" path="username" autocomplete="off" htmlEscape="true"/>
                                        </c:otherwise>
                                    </c:choose>
                                    <span class="user_pic bg"></span>
                                </li>
                                <li>
                                    <spring:message code="screen.welcome.label.password.accesskey" var="passwordAccessKey"/>
                                    <form:password cssClass="required input_login" cssErrorClass="error" id="password" size="25" tabindex="2" path="password"
                                                   accesskey="${passwordAccessKey}" htmlEscape="true" autocomplete="off"/>
                                    <span class="user_pw bg"></span>
                                </li>
                                <li><form:input path="captcha" tabindex="3" placeholder="" htmlEscape="true" maxlength="4" size="15" type="text" class="input_login" />
                                    <span class="validcode_span">
                                        <img eight="28" width="84" style="cursor:pointer; vertical-align:middle;" src="captcha.jsp"
                                             onClick="this.src='captcha.jsp?time'+Math.random();">
                                    </span>
                                </li>
                                <li>
                                    <span class="fl f12"><input type="checkbox" class="mr5" name="" id="r_pwd"/><label>记住密码</label></span>
                                    <span class="fr f12"><a href="#" >忘记密码？</a></span>
                                </li>
                            </ul>
                            <input class="btn100" style="border:0px; cursor: pointer;" name="submit" accesskey="l" value="<spring:message code="screen.welcome.button.login" />" tabindex="4" type="submit" />
                        </div>
                        <section class="row btn-row">
                            <input type="hidden" name="lt" value="${loginTicket}"/>
                            <input type="hidden" name="execution" value="${flowExecutionKey}"/>
                            <input type="hidden" name="_eventId" value="submit"/>
                        </section>
                    </form:form>
                </div>
            </div>
        </div>
        <!--body-->
        <!--footer-->
        <div class="footer box1">
            <img src="./img/login/guanqun.jpg" alt="冠群驰骋投资管理(北京)有限公司"/>
        </div>
        <!--footer-->
    </div>
</body>

